package services.impl;

import dao.WordDao;
import org.apache.ibatis.session.SqlSession;
import services.IWordService;
import utils.SqlSessionFactoryUtil;

public class WordService implements IWordService {
    SqlSession session= SqlSessionFactoryUtil.getSession();
    WordDao wordDao=session.getMapper(WordDao.class);
    @Override
    public int send(String title, String context) {
        int row=wordDao.send(title,context);
        session.commit();
        return row;
    }
}
